package com.yjd.bi.depository.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.depository.model.BasicDataDepoModel;

/**
 * <b>description</b>：银行存管数据统计业务接口<br>
 * <b>time</b>：2017-05-17 15:39:33 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IBasicDataDepoService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public BasicDataDepoModel insert(BasicDataDepoModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(BasicDataDepoModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 根据时间段查询统计信息
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public BasicDataDepoModel countByDatePeriod(Long beginDate, Long endDate) throws Exception;


	/**
	 * 根据年龄段统计数据
	 * @param start_year
	 * @param end_year
	 * @return
	 * @throws Exception
	 */
	public int countDepoBankByYear(Integer start_year,Integer end_year)throws Exception;


}
